<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>即时通讯平台</title>
    <link rel="stylesheet" href="css/comm.css">
    <link rel="stylesheet" href="css/client.css">
</head>
<body>
    <div class="cover"></div>
    <div class="client-container">
        <div class="set">
            <div class="set-1" style="background-image: url('pic/hand.png');"></div>
            <div class="set-2" style="background-image: url('pic/self.png');"></div>
        </div>
        <div class="main">
            <!-- 左侧区域 -->
            <div class="left">
                <!-- 当前登录用户的用户名,用户的头像 -->
                <div class="user">
                    <img src="photo/0.png" title="头像" width="45px" height="45px">
                    haha
                </div>
                <!-- 这是搜索框 -->
                <div class="search">
                    <!-- 输入框 -->
                    <input type="text" id="search-input" placeholder="搜索">
                    <!-- 点击按钮进行搜索 -->
                    <button onclick="search()"></button>
                </div>
                <!-- 标签页 -->
                <div class="tab">
                    <!-- 会话列表标签 -->
                    <div class="tab-session"></div>
                    <!-- 好友列表标签 -->
                    <div class="tab-friend"></div>
                </div>
                <!-- 会话列表 -->
                <ul class="list" id="session-list">
                    <li>
                        <h3>huhu</h3>
                        <p>随便</p>

                    </li>
                    <li>
                        <h3>huhu</h3>
                        <p>随便</p>

                    </li>
                </ul>
                <!-- 好友列表 -->
                <ul class="list hide" id="friend-list">
                    <li>
                        <h4>zhan</h4>
                    </li>
                    <button onclick="addFriendsSession()">建群</button>
                </ul>

            </div>
            <!-- 右侧区域, 显示聊天编辑框 -->
            <div class="right">
                <!-- 会话标题 -->
                <div class="title">
                    好友请求
                </div>

                <div class="load_button">
                    <!-- 加载按钮 -->
                    <button type="submit" id="load" onclick="loadMessage()"></button>
                </div>
                
                <!-- 消息区 -->
                <div class="message-show">
                    <div class="message message-left">
                        <div class="box">
                            <h4>haha</h4>
                            <p><img src="pic/backdrop.png" onload="if(this.width>=200){this.width=200}"></p>
                        </div>
                    </div>
                    
                    <div class="message message-right">
                        <div class="box">
                            <h5>haha</h5>
                            <p><img src="photo/0.png"></p>
                        </div>
                    </div>
                    <!-- 在搜索时展示用户信息 -->
<!--                    <div class="user-info">-->
<!--                        <div class="user-name">-->
<!--                            zhangsan-->
<!--                        </div>-->
<!--                        <input type = "text" id = "add-user" placeholder="打个招呼">-->
<!--                        <button onclick="requestUser()">添加好友</button>-->
<!--                    </div>-->
                    <!-- 建群时展示好友信息 -->
                    <!-- <div class="group">
                        <input type="checkbox"> -->
                        <!-- 用户姓名 -->
                        <!-- <div class="group-name">
                            zhangsan
                        </div>
                    </div> -->
                    <!-- <button class="ok">OK</button> -->
                    <!-- 好友申请 -->
                   <!-- <div class="requestUser">
                       <div class="user-name">
                           zhangsan
                       </div>
                       <div class="user-message">
                        tmp.message
                        </div>
                       <button class="true" onclick="trueRequest()">接受</button>
                       <button class="false" onclick="falseRequest()">拒绝</button>
                   </div> -->
                </div>
                <!-- 消息编辑框 -->
                <textarea class="message-input hide" readonly></textarea>
                <div class="tool-send">
                    <!-- 工具栏 -->
                    <div class="tool">
                        <img class="send-photo-tab hide" src="pic/photo.png" onload="this.height=20">
                        <input class="send-photo hide" type="file" accept="image/jpeg,image/png">
                    </div>
                    <!-- 发送按钮 -->
                    <div class="send hide">
                        <button class="send-message hide">发送</button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script src="js/jquery.min.js"></script>
    <script src="js/client.js"></script>

</body>
</html>